package com.woniu.gf.pawn.management.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.gf.pawn.comm.core.domain.Management;
import com.woniu.gf.pawn.comm.core.domain.Permission;
import com.woniu.gf.pawn.comm.core.domain.Role;
import com.woniu.gf.pawn.management.param.SelectManagementByRoleIdParam;
import com.woniu.gf.pawn.management.param.SelectPermissionByRoleIdParam;
import com.woniu.gf.pawn.management.param.SelectRoleParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-10-13
 */
public interface RoleService extends IService<Role> {

    List<Management> selectManagementByRoleId(SelectManagementByRoleIdParam selectManagementByRoleIdParam);

    List<Management> selectManagementNotRoleByRoleId(SelectManagementByRoleIdParam selectManagementByRoleIdParam);

    void deleteManagementRoleByRoleId(int roleId);

    IPage<Role> selectPageRole(SelectRoleParam selectRoleParam);

    void deleteRolePermissionByRoleId(int roleId);

    List<Permission> selectPermissionByRoleId(SelectPermissionByRoleIdParam selectPermissionByRoleIdParam);

    List<Permission> selectPermissionNotByRoleId(SelectPermissionByRoleIdParam selectPermissionByRoleIdParam);
}
